//
//  CXClassProModel.m
//  GiftThat
//
//  Created by ChuXiang on 16/1/7.
//  Copyright © 2016年 ChuXiang. All rights reserved.
//

#import "CXClassProModel.h"

@implementation CXClassProModel
- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"channels"]) {
        NSArray *array = value;
        NSMutableArray *mutbleArray = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in array) {
            CXOtherModel *model = [[CXOtherModel alloc]initWithDictionary:dic];
            [mutbleArray addObject:model];            
        }
        self.channel = [[NSMutableArray alloc]initWithArray:mutbleArray];
    }
}
@end
